import os

path1_0 = "E:\\company_project\\e6_project\\baixingyaofang\\1.0"
path3_0 = "E:\\company_project\\e6_project\\baixingyaofang\\3.0"


def list_path(filepath):
    # 遍历filepath下所有文件，包括子目录
    files = os.listdir(filepath)
    for fi in files:
        fi_d = os.path.join(filepath, fi)
        # print(os.path.join(filepath, fi_d))
        str = """
cd %s
git checkout master
mvn install
cd ..

"""
        print(str % fi)


def main():
    # list_path(path1_0)
    list_path(path1_0)


if __name__ == '__main__':
    main()
